<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>{{ $title }}</title>

</head>
<body>
@if($config['type']=='server')

    <table width="" border="1" align="left" cellpadding="10" cellspacing="0"
           style="     padding:0 20px;font-size:14px;color:#333333;border-collapse:collapse;border-color: #ededed;margin:20px">
        <caption>
            <h3 style="font-size: 16px； color:#333 text-center:center">{{ $config['user_name'] }}购买了服务器</h3>
        </caption>

        <tr>
            <td>订单ID</td>
            <td>服务器名称</td>
            <td>付款金额</td>
            <td>购买月数</td>
            <td>购买日期</td>
        </tr>
        <tr>
            <td>{{ $config['order_id'] }}</td>
            <td>{{ $config['name'] }}</td>
            <td>{{ $config['total'] }}</td>
            <td>{{ $config['month'] }}</td>
            <td>{{ $config['created_at'] }}</td>
        </tr>

    </table>
@elseif($config['type']=='domain')
    <table width="" border="1" align="left" cellpadding="10" cellspacing="0"
            style="     padding:0 20px;font-size:14px;color:#333333;border-collapse:collapse;border-color: #ededed;margin:20px">
        <caption>
            <h3 style="font-size: 16px； color:#333 text-center:center">{{ $config['user_name'] }}注册了域名</h3>
        </caption>

        <tr>
            <td>订单ID</td>
            <td>域名</td>
            <td>付款金额</td>
            <td>购买年数</td>
            <td>购买日期</td>
            <td>状态</td>
        </tr>
        <tr>
            <td>{{ $config['order_id'] }}</td>
            <td>{{ $config['name'] }}</td>
            <td>{{ $config['total'] }}</td>
            <td>{{ $config['year'] }}</td>
            <td>{{ $config['created_at'] }}</td>
            <td>{{ $config['status']==3?'等待审核':'成功' }}</td>
        </tr>

    </table>
@elseif($config['type']=='domain_renewal')
    <table width="" border="1" align="left" cellpadding="10" cellspacing="0"
           style="     padding:0 20px;font-size:14px;color:#333333;border-collapse:collapse;border-color: #ededed;margin:20px">
        <caption>
            <h3 style="font-size: 16px； color:#333 text-center:center">{{ $config['user_name'] }}续费了域名</h3>
        </caption>

        <tr>
            <td>订单ID</td>
            <td>域名</td>
            <td>付款金额</td>
            <td>续费年数</td>
            <td>续费日期</td>
            <td>状态</td>
        </tr>
        <tr>
            <td>{{ $config['order_id'] }}</td>
            <td>{{ $config['name'] }}</td>
            <td>{{ $config['total'] }}</td>
            <td>{{ $config['year'] }}</td>
            <td>{{ $config['created_at'] }}</td>
            <td>{{ $config['status']==4?'域名续费等待审核':'成功' }}</td>
        </tr>

    </table>
@elseif($config['type']=='server_renewal')

    <table width="" border="1" align="left" cellpadding="10" cellspacing="0"
           style="     padding:0 20px;font-size:14px;color:#333333;border-collapse:collapse;border-color: #ededed;margin:20px">
        <caption>
            <h3 style="font-size: 16px； color:#333 text-center:center">{{ $config['user_name'] }}购买了服务器</h3>
        </caption>

        <tr>
            <td>订单ID</td>
            <td>服务器名称</td>
            <td>续费金额</td>
            <td>续费月数</td>
            <td>续费日期</td>
        </tr>
        <tr>
            <td>{{ $config['order_id'] }}</td>
            <td>{{ $config['name'] }}</td>
            <td>{{ $config['total'] }}</td>
            <td>{{ $config['month'] }}</td>
            <td>{{ $config['created_at'] }}</td>
        </tr>

    </table>
@elseif($config['type']=='user_notify')

    <table width="" border="1" align="left" cellpadding="10" cellspacing="0"
           style="     padding:0 20px;font-size:14px;color:#333333;border-collapse:collapse;border-color: #ededed;margin:20px">
        <caption>
            <h3 style="font-size: 16px； color:#333 text-center:center">{{ $config['name'] }}即将到期,请及时续期</h3>
        </caption>

        <tr>
            <td>订单号</td>
            <td>服务器名称</td>
            <td>到期日期</td>
        </tr>
        <tr>
            <td>{{ $config['order_sn'] }}</td>
            <td>{{ $config['name'] }}</td>
            <td>{{ $config['end_at'] }}</td>
        </tr>

    </table>
@elseif($config['type']=='user_domain_notify')

    <table width="" border="1" align="left" cellpadding="10" cellspacing="0"
           style="     padding:0 20px;font-size:14px;color:#333333;border-collapse:collapse;border-color: #ededed;margin:20px">
        <caption>
            <h3 style="font-size: 16px； color:#333 text-center:center">{{ $config['name'] }}即将到期,请及时续期</h3>
        </caption>

        <tr>
            <td>订单号</td>
            <td>域名</td>
            <td>到期日期</td>
        </tr>
        <tr>
            <td>{{ $config['order_sn'] }}</td>
            <td>{{ $config['name'] }}</td>
            <td>{{ $config['end_at'] }}</td>
        </tr>

    </table>
@elseif($config['type']=='user_notify_site')

    <table width="" border="1" align="left" cellpadding="10" cellspacing="0"
           style="     padding:0 20px;font-size:14px;color:#333333;border-collapse:collapse;border-color: #ededed;margin:20px">
        <caption>
            <h3 style="font-size: 16px； color:#333 text-center:center">{{ $config['name'] }}即将到期,请及时提醒会员续期</h3>
        </caption>

        <tr>
            <td>订单ID</td>
            <td>服务器名称</td>
            <td>到期日期</td>
            <td>会员</td>
            <td>会员id</td>
            <td>会员邮箱</td>
        </tr>
        <tr>
            <td>{{ $config['id'] }}</td>
            <td>{{ $config['name'] }}</td>
            <td>{{ $config['end_at'] }}</td>
            <td>{{ $config['user']['name'] }}</td>
            <td>{{ $config['user']['id'] }}</td>
            <td>{{ $config['user']['email'] }}</td>
        </tr>

    </table>
@elseif($config['type']=='user_domain_notify_site')

    <table width="" border="1" align="left" cellpadding="10" cellspacing="0"
           style="     padding:0 20px;font-size:14px;color:#333333;border-collapse:collapse;border-color: #ededed;margin:20px">
        <caption>
            <h3 style="font-size: 16px； color:#333 text-center:center">{{ $config['name'] }}即将到期,请及时提醒会员续期</h3>
        </caption>

        <tr>
            <td>订单ID</td>
            <td>域名</td>
            <td>到期日期</td>
            <td>会员</td>
            <td>会员id</td>
            <td>会员邮箱</td>
        </tr>
        <tr>
            <td>{{ $config['id'] }}</td>
            <td>{{ $config['name'] }}</td>
            <td>{{ $config['end_at'] }}</td>
            <td>{{ $config['user']['name'] }}</td>
            <td>{{ $config['user']['id'] }}</td>
            <td>{{ $config['user']['email'] }}</td>
        </tr>

    </table>
@endif
</body>
</html>